package cn.liontalk.dao;

import cn.liontalk.entity.MSOrder;
import cn.liontalk.entity.OrderInfo;
import org.apache.ibatis.annotations.Param;

/**
 * @author: 周哲
 * @package: cn.liontalk.dao
 * @description:
 * @date: 2019/1/20 19:13
 * @version: V1.0
 */
public interface SecKillDao {

    /**
     * 查询用户是否参与了重复秒杀
     * @param goodsId
     * @param uid
     * @return
     */
    OrderInfo queryGoodsKillInfoByGoodsIdAndUserId(@Param("goodsId") long goodsId,@Param("uid") long  uid);


    /**
     * 创建秒杀信息
     * @param msOrder
     */
    void  createMsOrderInfo(MSOrder msOrder);
}
